<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<link href="${ctx}/styles/extremetable/extremecomponents.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/styles/extremetable/style.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/styles/listTable.css" rel="stylesheet" type="text/css">
<link href="${ctx}/styles/grid.css" rel="stylesheet" type="text/css">
<link href="${ctx}/styles/aux_window.css" rel="stylesheet" type="text/css">
<link href="${ctx}/styles/public.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/public3.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/rightmenu2.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/global.js"></script>
<script language="JavaScript"  src="${ctx}/scripts/show.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/div/window.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/extremetable/extremecomponents.js"></script>
<script>
var lesseeBaseIndex = null;
var flag_button_click=true;
function setSize() {
  parent.window.document.all('lesseeBaseList').style.height=document.body.scrollHeight;
}
function rightMenue(event)
{
	ShowContextMenu(event,'quick_rightmenu2');

}

function setVar(participantTypeCode,customeID){
		parent.setVar(participantTypeCode,customeID);
}

function showDetail(participantTypeCode,index)
{
	if(participantTypeCode == '001')
		var url = "${ctx}/customer_lesseeAction.do?method=getIndividualDetailByIndexFromCache&index="+index;
	else if(participantTypeCode == '002')
		var url = "${ctx}/customer_lesseeAction.do?method=getOrganizationDetailByIndexFromCache&index="+index;
	windowOpen(url,'lesseeEditFrm','租户详细资料',670,900,false,"lesseeEditFrm");
}



</script>
</head>
<body leftmargin="0" onload="setSize();">

<ec:ceTable items="lesseeBaseList"
	action="${ctx}/customer_lesseeAction.do?method=initLesseeBaseList"
	var="lesseeBaseItem"
	view="pmsview"
	styleClass="gridData2"
	rowsDisplayed="5">
	<ec:ceRow styleClass="grid" onclick="setVar('${lesseeBaseItem.participantTypeCode}','${lesseeBaseItem.index}');" onContextMenu="rightMenue(event);"ondblclick="showDetail('${lesseeBaseItem.participantTypeCode}','${lesseeBaseItem.index}')">
		<ec:ceColumn headerCell="pmsHeadrCell" title="姓名" property="participantName" value="${lesseeBaseItem.participantName}"  width="9%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="住户类型" property="customerType" value="${lesseeBaseItem.customerType}" width="9%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="证件类型" property="certificateTypeName" value="${lesseeBaseItem.certificateTypeName}" width="9%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="证件号码" property="certificateNo" value="${lesseeBaseItem.certificateNo}" width="9%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="联系电话" property="telephone" value="${lesseeBaseItem.telephone}" width="9%"/>
	</ec:ceRow>
</ec:ceTable>
<br>
<br>

<div id="quick_rightmenu2" style="display:none;" oncontextmenu="return false" class="quick_rightmenu">
  <table width="100%" border="0" cellpadding="1" cellspacing="0" class="grid_quickMenu_bg"  onMouseOver="showmy2menu('quick_rightmenu2')"  onMouseOut="hidden2menu('quick_rightmenu2')">
    <tr>
      <td><table width="100%" border="0" cellpadding="2" cellspacing="0">
         <tr>
          <td class="quickMenu_toolbarico"><a href="#"  onclick="parent.openAddLessee();"onfocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" alt="" width="16" height="16" border="0" align="absbottom"> 新 建</a></td>
          </tr>

		<tr>
          <td class="quickMenu_toolbarico"><a href="#" onFocus="this.blur()" onClick="parent.openEditLessee();"><img src="${ctx}/images/ico_amend.gif" alt="" width="16" height="16" border="0" align="absbottom"> 修
              改</a></td>
          </tr>
        <tr>
          <td class="quickMenu_toolbarico"><a href="#" onClick="parent.openDelete();" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="" width="16" height="16" border="0" align="absbottom"> 删
              除</a></td>
          </tr>

      </table></td>
    </tr>
  </table>
</div>
</body>
</html>